<!DOCTYPE HTML>
<html>
  
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="common/js/form_init.js" id="form_init_script"
    data-name="">
    </script>
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css">
  <style>
    body {
      padding-top: 60px;
      padding-bottom: 40px;
    }
  </style>
  <!--<link rel="stylesheet" href="<?php /*echo base_url();*/?>/assets/css/bootstrap-responsive.min.css">-->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/css/main.css">

  <script src="<?php echo base_url();?>assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  <script src="<?php echo base_url();?>assets/js/restaurant.js"></script>
  <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/test/default.css?version=564"
    id="theme" />
    <title>
    <?php if ($isedit){?>
      Chỉnh sửa thông tin bàn
    <?php }else {?>
      Thêm bàn
    <?php }?>
    </title>
  </head>
  
  <body>
  <?php $this->load->view('supermenu');?>
  
  <style>#docContainer .fb_cond_applied{ display:none; }</style><noscript><style>#docContainer .fb_cond_applied{ display:inline-block; }</style></noscript><form class="fb-toplabel fb-100-item-column selected-object" id="docContainer"
action="" enctype="multipart/form-data" method="POST" novalidate="novalidate"
data-form="preview">
  <div class="fb-form-header" id="fb-form-header1" style="min-height: 0px;">
    <a class="fb-link-logo" id="fb-link-logo1" target="_blank"><img title="Alternative text" class="fb-logo" id="fb-logo1" style="display: none;" alt="Alternative text" src="common/images/image_default.png"/></a>
  </div>
  <div class="section" id="section1">
    <div class="column ui-sortable" id="column1">
      <div class="fb-item fb-100-item-column" id="item1">
        <div class="fb-header">
          <h2 style="display: inline;">
          	<?php if ($isedit){?>
          	    Chỉnh sửa thông tin bàn
          	<?php }else {?>
            	Thêm bàn
            <?php }?>
          </h2>
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item2">
        <div class="fb-grouplabel">
          <label id="item2_label_0" style="display: inline;">Tên bàn</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
        	  <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
	          data-hint="" autocomplete="off" value="<?php echo $info->name; ?>" />
        <?php }else {?>
	          <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
	          data-hint="" autocomplete="off" />
         <?php }?>
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item6">
        <div class="fb-grouplabel">
          <label id="item6_label_0" style="display: inline;">Hình ảnh đại diện</label>
        </div>
        <div class="fb-button">
          <input name="file6" id="item6_file_1" type="file" data-hint="" />
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item8">
        <div class="fb-grouplabel">
          <label id="item8_label_0">Số ghế ngồi</label>
        </div>
        <div class="fb-input-number">
        <?php if ($isedit){?>
        	  <input name="number8" id="item8_number_1" type="number" min="0" max="999999999"
	          step="1" data-hint="" autocomplete="off" value="<?php echo $info->number; ?>" />
        <?php }else {?>
	          <input name="number8" id="item8_number_1" type="number" min="0" max="999999999"
	          step="1" data-hint="" autocomplete="off" />
	    <?php }?>
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item4">
        <div class="fb-grouplabel">
          <label id="item4_label_0" style="display: inline;">Người quản lý</label>
        </div>
        <div class="fb-dropdown">
          <select name="select4" id="item4_select_1" data-hint="">
          <?php if ($isedit){?>
          	<?php if (is_array($manager_list)){?>
          		<?php foreach ($manager_list as $manager){?>
          			<?php if ($manager->_id == $info->manager_id){?>
	          			<option selected id="item4_0_option" value="<?php echo $manager->_id?>">
			              <?php echo $manager->first_name." ".$manager->last_name?>
			            </option>
			        <?php }else {?>
			        	<option id="item4_0_option" value="<?php echo $manager->_id?>">
			              <?php echo $manager->first_name." ".$manager->last_name?>
			            </option>
			        <?php }?>
          		<?php }?>
          	<?php }?>
          <?php }else {?>
          	<?php if (is_array($manager_list)){?>
          		<?php foreach ($manager_list as $manager){?>
          			<option id="item4_0_option" value="<?php echo $manager->_id?>">
		              <?php echo $manager->first_name." ".$manager->last_name?>
		            </option>
          		<?php }?>
          	<?php }?>
          <?php }?>
          </select>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item5" style="opacity: 1;">
        <div class="fb-grouplabel">
          <label id="item5_label_0" style="display: inline;">Thông tin thêm</label>
        </div>
        <div class="fb-textarea">
        <?php if ($isedit){?>
        	  <textarea name="textarea5" id="item5_textarea_1" style="resize: none;"
	          maxlength="10000" placeholder="" data-hint=""><?php echo $info->description; ?></textarea>
        <?php }else {?>
	          <textarea name="textarea5" id="item5_textarea_1" style="resize: none;"
	          maxlength="10000" placeholder="" data-hint=""></textarea>
	    <?php }?>
        </div>
      </div>
    </div>
  </div>
  <div class="fb-captcha fb-item-alignment-center" id="fb-captcha_control"
  style="display: none; cursor: default;">
    <img src="editordata/images/recaptchawhite.png" />
  </div>
  <div class="fb-item-alignment-left fb-footer" id="fb-submit-button-div"
  style="min-height: 0px;">
    <input class="fb-button-special" id="fb-submit-button" style="background-image: url('<?php echo base_url();?>assets/css/images/btn_submit.png');"
    type="submit" data-regular="url('<?php echo base_url();?>assets/css/images/btn_submit.png')"
    value="OK" />
  </div>
</form>
</body>
</html>